package
{
	import feathers.themes.MetalWorksMobileTheme;
	
	import shell.ShellContext;
	import shell.view.components.ShellRootView;
	
	import starling.core.Starling;
	import starling.display.Sprite;
	import starling.events.Event;
	
	public class Main extends Sprite
	{
		public function Main()
		{
			super();
			addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
		}
		
		private var t:MetalWorksMobileTheme;
		
		private function onAddedToStage(event:Event):void
		{
			initialize();
		}
		
		private function initialize():void
		{
			t = new MetalWorksMobileTheme(this.stage);
			trace(Starling.current.context.driverInfo);
			var rootView:ShellRootView = new ShellRootView();
			addChild(rootView);
			var shellContext:ShellContext = new ShellContext(rootView);
		}
		
	}
}